package test.davidlauzon.activerecord;

import davidlauzon.activerecord.nodes.Database;
import davidlauzon.activerecord.nodes.Table;

public class AndroidDB extends Database
{
    static public final String NAME = "test.db";
    
    static public final Table PEOPLE_TABLE   = new Table("people", MyPerson.FIELDS);
    static public final Table PRODUCTS_TABLE = new Table("products", MyProduct.FIELDS);
    
    static public final Table[] TABLES = {
        PEOPLE_TABLE,
        PRODUCTS_TABLE
    };
    
    static private final Database __instance = new AndroidDB();
    static public Database getInstance() { return __instance; }
    
    private AndroidDB() {
        super();
        try { 
            setName( NAME );
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
    
}